package com.hmy.finance.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmy.finance.dal.po.ProfitLossRecordPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songkf
 * @description 针对表【profit_loss_record(损益业务记录表)】的数据库操作Mapper
 * @createDate 2024-02-21 18:55:01
 * @Entity com.hmy.finance.dal.po.ProfitLossRecordPo
 */
public interface ProfitLossRecordMapper extends BaseMapper<ProfitLossRecordPo> {
    /**
     * 批量插入
     *
     * @param profitLossRecordPoList 损益业务记录集合
     * @return 影响条数
     * @author songkf
     */
    int insertBatch(@Param("list") List<ProfitLossRecordPo> profitLossRecordPoList);

    /**
     * 根据损益业务记录ID集合批量失效
     *
     * @param profitLossIdList 损益业务记录ID集合
     * @return 影响条数
     * @author songkf
     */
    int batchInvalidProfitLossById(@Param("profitLossIdList") List<Long> profitLossIdList);

    int batchWaitEffectiveProfitLossById(@Param("profitLossIdList") List<Long> profitLossIdList);

    int batchUpdateOffsetResult(@Param("infoList") List<ProfitLossRecordPo> receivableAdjustProfitLossInfoList);

}




